Skip to content

Conversation

Farah-Stu
Copy link

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

Briefly explain your PR.

Questions

Ask any questions you have for your reviewer.

@day-lee day-lee added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Aug 7, 2025
function displayHogwartsNames ({firstName,lastName}){
console.log(`${firstName} ${lastName}`);
}
hogwarts.forEach(displayHogwartsNames);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You useddisplayHogwartsNames function as a callback function for the forEach method. Being able to pass a function as an argumetn is one of the Java Script's fundamental concepts. Can you name this concept in JS?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done for using object destructuring as a parameter!
However, the printed result doesn't quite match to the expected result.

  1. missing column names: It should print out the column fields: QTY, ITEM, TOTAL in order and correct values for each column.
  2. number formatting: 232 should be 2.32
  3. missing Total: total price is missing
    Please refactor the code to match the expected result in readme.md

@day-lee day-lee added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Aug 8, 2025
@day-lee
Copy link

day-lee commented Aug 8, 2025

Hi @Farah-Stu, well done for completing the tasks. I left a few comments. Please have a look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants